//
//  UIButton+Extension.swift
//  KimboWeiBoSwift
//
//  Created by kimbo on 15/12/21.
//  Copyright © 2015年 kimbo. All rights reserved.
//

import UIKit

extension UIButton {
    convenience init(title: String, imageName: String, fontSize: CGFloat) {
        self.init()
        
        setTitle(title, forState: UIControlState.Normal)
        
        setImage(UIImage(named: imageName), forState: UIControlState.Normal)
        
        titleLabel?.font = UIFont.systemFontOfSize(fontSize)
    }
}


